package com.raising.modules.sys.entity;

import com.raising.framework.entity.BaseEntity;

/**
* 错误日志
* @author gaoyuan
* @createTime 2018-06-05 12:57:07
*/
public class Elog extends BaseEntity{

    private static final long serialVersionUID = 1L;

    /** 用户主键 */
    private String userId;
    /** 请求路径 */
    private String uri;
    /** 错误描述 */
    private String errorMessage;
    /** 错误详细内容 */
    private String errorContent;
    /** 请求agent */
    private String userAgent;
    /** 请求参数 */
    private String requestParam;
    /** 请求body */
    private String requestBody;
    /** 请求方式 */
    private String requestMethod;
    /** ip */
    private String ip;
    /** 错误时间 */
    private String errorTime;

    /** 用户名 */
    private String username;

    public Elog() {
        super();
    }
    public Elog(String id){
        super(id);
    }

    public String getUserId(){
        return userId;
    }

    public void setUserId(String userId){
        this.userId = userId;
    }

    public String getUri(){
        return uri;
    }

    public void setUri(String uri){
        this.uri = uri;
    }

    public String getErrorMessage(){
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage){
        this.errorMessage = errorMessage;
    }

    public String getErrorContent(){
        return errorContent;
    }

    public void setErrorContent(String errorContent){
        this.errorContent = errorContent;
    }

    public String getUserAgent(){
        return userAgent;
    }

    public void setUserAgent(String userAgent){
        this.userAgent = userAgent;
    }

    public String getRequestParam(){
        return requestParam;
    }

    public void setRequestParam(String requestParam){
        this.requestParam = requestParam;
    }

    public String getRequestBody(){
        return requestBody;
    }

    public void setRequestBody(String requestBody){
        this.requestBody = requestBody;
    }

    public String getRequestMethod(){
        return requestMethod;
    }

    public void setRequestMethod(String requestMethod){
        this.requestMethod = requestMethod;
    }

    public String getIp(){
        return ip;
    }

    public void setIp(String ip){
        this.ip = ip;
    }

    public String getErrorTime(){
        return errorTime;
    }

    public void setErrorTime(String errorTime){
        this.errorTime = errorTime;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @Override
    public String toString() {
        return "Elog{" +
            "id='" + id + '\'' + ", " + 
            "userId='" + userId + '\'' + ", " + 
            "uri='" + uri + '\'' + ", " + 
            "errorMessage='" + errorMessage + '\'' + ", " + 
            "errorContent='" + errorContent + '\'' + ", " + 
            "userAgent='" + userAgent + '\'' + ", " + 
            "requestParam='" + requestParam + '\'' + ", " + 
            "requestBody='" + requestBody + '\'' + ", " + 
            "requestMethod='" + requestMethod + '\'' + ", " + 
            "ip='" + ip + '\'' + ", " + 
            "errorTime='" + errorTime + '\'' + ", " + 
            "createBy='" + createBy + '\'' + ", " + 
            "createDate='" + createDate + '\'' +
        '}';
    }
}
